package com.rustic.server.vo.weixin;

import cn.xy.base.server.vo.LoginResult;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *  @author xy
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WxLoginResult<T> extends LoginResult<T> {
    private String openId;

    public WxLoginResult(String openId) {
        this.setOpenId(openId);
    }

    public WxLoginResult(String token, T user, String openId) {
        this.setToken(token);
        this.setInfo(user);
        this.setOpenId(openId);
    }
}
